﻿@model DLM.Web.ViewModel.Admin.PartyInfoPageView
@{
    ViewBag.Title = "活动审核";
}
@*    <script type="text/javascript">

          function OnSuccess(response) {
              $("#status").val()

              alert(response);
          }

          function OnFailure(response) {
              alert("Whoops! That didn't go so well did it?");
          }

        </script>
        <p>

        </p>*@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>活动详情</title>
    <link href="@Url.Content("~/Content/css/admin/global.css")" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/admin/global.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui-1.8.18.custom.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")"></script>
    <script type="text/javascript">
        $(function () {
            $('#add_dialog_link').click(function () {
                $('#add_dialog').dialog({ modal: true }, { width: 680 }, { height: 480 });
            });
        });

    </script>
</head>
<body id="main_body">
    <div class="c1">
        <h1>
            <span>活动详情</span></h1>
        <!--TAB S-->
        <div class="tab_box">
            <div class="tab_head">
                <ul class="tab_ul clearfix">
                    <li class="current">活动详情</li><li>参加会员</li><li>活动留言</li><li>活动图片</li></ul>
            </div>
            <div class="tab_area">
                <ul class="tab_ul_wrap">
                    <li>
                        @Html.ValidationSummary(false, "活动编辑出现异常")
                        <!--FORM S-->
                        @using (Html.BeginForm("Edit", "Party", FormMethod.Post))
                        {
                                
                            <div class="form_box">
                                <div class="validate_area" style="display: none;">
                                    @*     <h6 class="info">
                                    请确保所有表单都已经填完</h6>
                                <h6 class="warning">
                                    表单验证部分未通过，请填写</h6>
                                <h6 class="error">
                                    表单验证错误，请重新填写</h6>
                                <h6 class="accept">
                                    表单验证未通过，请稍后</h6>*@
                                </div>
                                <div class="form_area">
                                    <fieldset>
                                        <legend>活动内容</legend>
                                        <p>
                                            <label for="firstname">
                                                活动状态</label><br>
                                            @{
                            List<SelectListItem> list = new List<SelectListItem>
                    {
                        new SelectListItem{ Text="待审核",Value="3"},
                        new SelectListItem{ Text="通过",Value="0"},
                        new SelectListItem{ Text="冻结",Value="2"},
                        new SelectListItem{ Text="取消",Value="4"},
                         new SelectListItem{ Text="结束",Value="1"}
                    };
                            foreach (var item in list)
                            {
                                if (item.Value == Model.Party.Status.ToString())
                                {
                                    item.Selected = true;
                                }
                            }
                                            }
                                            @Html.DropDownListFor(model => model.Party.Status, list)
                                        </p>
                                        <p>
                                            <label for="lastname">
                                                活动是否成功</label><br>
                                            @{
                            List<SelectListItem> result = new List<SelectListItem>
                    {
                        new SelectListItem{ Text="---",Value="0"},
                        new SelectListItem{ Text="成功",Value="True"},
                        new SelectListItem{ Text="失败",Value="False"}
                    };

                            if (Model.Party.IsSuccess == false)
                            {
                                result[2].Selected = true;
                            }
                            else
                            {
                                result[1].Selected = true;
                            }
                                            }
                                            @Html.DropDownListFor(model => model.Party.IsSuccess, result)
                                        </p>
                                        <p>
                                            <label for="lastname">
                                                活动类型</label><br>
                                            @switch (Model.Party.PartyType)
                                            {
                                                case 0:
                                                @Html.Label("体育活动");
                                                                       break;
                                                case 1:
                                                @Html.Label("单身男女");
                                                                   break;
                                                case 2:
                                                @Html.Label("老乡交友");
                                                                   break;
                                                case 3:
                                                @Html.Label("其他活动");
                                                                   break;
                                                default:
                                                @Html.Label("其他活动");
                                                                   break;
                                            }
                                            @*  @Html.DisplayFor(model => model.Party.PartyType)*@
                                        </p>
                                        <p>
                                            <label class="" for="username">
                                                活动主题</label>
                                            <label class="error ok" generated="true" for="username">
                                                &nbsp;</label><br>
                                            @Model.Party.Subject
                                        </p>
                                        @*     	<p>
								<label for="firstname">活动名称</label><br>
								<input id="firstname" class="half" value="上海2012单身假面舞会派对" name="firstname" type="text">
							</p>*@
                                        <p>
                                            <label class="" for="username">
                                                活动内容</label>
                                            <label class="error ok" generated="true" for="username">
                                                &nbsp;</label><br>
                                            @Model.Party.Content
                                        </p>
                                        <p>
                                            <label class="" for="username">
                                                活动开始时间</label>
                                            <label class="error ok" generated="true" for="username">
                                                &nbsp;</label><br>
                                            @Model.Party.PartyDate
                                        </p>
                                        <p>
                                            <label class="" for="username">
                                                活动结束时间</label>
                                            <label class="error ok" generated="true" for="username">
                                                &nbsp;</label><br>
                                            @Model.Party.EndDate
                                        </p>
                                        <p>
                                            <label class="" for="username">
                                                发布时间</label>
                                            <label class="error ok" generated="true" for="username">
                                                &nbsp;</label><br>
                                            @Model.Party.CreateDate
                                        </p>
                                        <p>
                                            <label class="" for="username">
                                                活动地点</label>
                                            <label class="error ok" generated="true" for="username">
                                                &nbsp;</label><br>
                                            @Model.Party.Location
                                        </p>
                                        <p>
                                            <label class="" for="username">
                                                详细地址</label>
                                            <label class="error ok" generated="true" for="username">
                                                &nbsp;</label><br>
                                            @Model.Party.Address
                                        </p>
                                        @*         <p>
                                        <input id="terms" class="" value="1" name="terms" type="checkbox">
                                        <label class="choice" for="terms">
                                            我已阅读并且同意所有条款</label>
                                    </p>*@
                                        <p class="box">
                                            @Html.HiddenFor(m => m.Party.PartyID)
                                            <input class="btn" value="提交" type="submit" />
                                            @*  <input class="btn" value="重置" type="reset" />*@</p>
                                    </fieldset>
                                </div>
                            </div>
                        }
                        <!--FORM E-->
                    </li>
                    <li>
                        <!--TABLE S-->
                        <div class="table_box" id="divUser">
                            @{Html.RenderPartial("_ParticipateList", Model);}
                        </div>
                        <!--TABLE E-->
                    </li>
                    <li>
                        <!--table s-->
                        <div class="table_box" id="divRemark">
                            @{Html.RenderPartial("_RemarkList", Model.RemarkList);}
                        </div>
                        <!--table E-->
                    </li>
                           <li>
                        <!--table s-->
                        <div class="table_box" id="divAlbum">
                            @{Html.RenderPartial("_PartyAlbum", Model.Album);}
                        </div>
                        <!--table E-->
                    </li>
                </ul>
            </div>
        </div>
    </div>
</body>
</html>
